package net.dgg.iboss.sc.backservice.task.service;

import net.dgg.iboss.sc.backservice.task.dao.credential.CertificateMatchingDao;
import net.dgg.iboss.sc.backservice.task.entity.credentail.CertificateMatchingEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;

@Service
public class CertificateMatchingService {
    @Autowired
    private CertificateMatchingDao certificateMatchingDao;

    /**
     * 查询配置设置信息
     * @param certificateSpecialtyId
     * @param certificateTypeId
     * @param certificateLevel
     * @return
     */
    public CertificateMatchingEntity getMatchingByMap(Integer certificateSpecialtyId,Integer certificateTypeId,String certificateLevel){
        Map params = new HashMap();
        params.put("certificateSpecialtyId",certificateSpecialtyId);
        params.put("certificateTypeId",certificateTypeId);
        params.put("certificateLevel",certificateLevel);
        return certificateMatchingDao.queryCertificateMatching(params);
    }
}
